import cv2
import numpy as up

img1 = cv2.imread('E:1.jpg')
img2 = cv2.imread('E:2.JPG')

print('两幅人脸图像的尺寸分别为:\n', img1.shape, '\n', img2.shape)

resize_down = cv2.resize(img1, (200,200), interpolation=cv2.INTER_LINEAR)
resize_up = cv2.resize(img2, (200,200), interpolation=cv2.INTER_LINEAR)

cv2.imwrite('E:9.jpg', resize_down)
cv2.imwrite('E:10.jpg', resize_up)